package io;

import java.io.*;

/**
 * 自行完成流链接对文件进行文本操作
 */
public class PWDemo2 {
    public static void main(String[] args) throws FileNotFoundException, UnsupportedEncodingException {
        /** 缓冲字符流:
         * BufferedWriter 和 BufferedReader */
        FileOutputStream fos = new FileOutputStream("biubui.txt",true);
        OutputStreamWriter osw = new OutputStreamWriter(fos,"UTF-8");
        BufferedWriter bsw = new BufferedWriter(osw);
        PrintWriter psw = new PrintWriter(bsw,true);
        psw.println("艾斯:超兽与普通怪兽不一样;");
        psw.println("他们是感觉不到疼痛的？");
        psw.println("***：？？？");
        System.out.println("执行结束!");
        psw.close();




    }
}
